<#include "header.html">
<script type="text/javascript">
$(function(){
	$("#dataType").change(function(){
		location.href = "?method=query&dataType="+$(this).val();
	});
	$("#addBtn").click(function(){
		location.href = "?method=add&dataType="+$("#dataType").val();
	});
});

</script>
<div class="c_nav">
	<span>管理选项：</span>
	<a href="sysParamAction.do?method=query${queryParams!}">管理首页</a>
	<a href="sysParamAction.do?method=reload${queryParams!}"> | 重载缓存</a>
	<a href="javascript:location.reload()"> | [刷新页面]</a>
</div>
<div class="c_box bg_white">
	<div class="c_topic">系统参数配置</div>
	<div class="c_form_6">
		<ul class="l_mb">
			<li>
				<span class="e_select">
					<select name="dataType" id="dataType" ${dataType}>
						<option value="0">系统参数分类</option>
						<#list root as obj>
						<option value="${obj.dataCode!}"<#if obj.dataCode == dataType> selected="selected" </#if>>${obj.dataName!}-${obj.dataCode!}</option>
						</#list>
					</select>
				</span>
			</li>
		</ul>
	</div>	
	<input type="hidden" id="queryParams" name="queryParams" value="${queryParams!}"/>
	<@funcBtn/>
	<div class="c_table e_center l_mt">
		<table bind="table" checkboxName="dataId" checkAllId="checkedAll">
        	<thead>
				<tr>
					<th><input type="checkbox" id="checkedAll" name="checkedAll"/></th>
					<th>参数类别</th>
					<th>参数名称</th>
					<th>参数编码</th>
				</tr>
            </thead>
            <tbody>
			 <#list params as obj>
				<tr>
					<td><input type="checkbox" name="dataId" value="${obj.id}"/></td>
					<td>${obj.dataType!}</td>
					<td>${obj.dataName!}</td>
					<td>${obj.dataCode!}</td>
				</tr>
			</#list>           
            </tbody>
		</table>
	</div>
</div>
<#include "footer.html">